package com.gulimall.api.feign;

import com.gulimall.api.domain.MemberAddressDTO;
import com.gulimall.common.core.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("gulimall-member")
public interface MemberClient {
    /**
     * 获取用户的收货地址列表
     * ums_member_receive_address表
     */
    @GetMapping("/member-receive-address/getMemberReceiveAddress/{memberId}")
    Result<List<MemberAddressDTO>> getMemberReceiveAddress(@PathVariable("memberId") Long memberId);

    /**
     * 获取用户积分
     */
    @GetMapping("/member/getMemberIntegration")
    Result<Integer> getMemberIntegration();
}
